package br.com.ema.maze.components;

/**
 * @author Emanuel Cruz Rodrigues -> emanuelcruzrodrigues@gmail.com
 *
 */
public class MazeWall implements MazeDecoration{

	private boolean allowsPassage = false;
	private MazeComponent mazeComponent;
	
	public MazeWall() {
	}
	
	@Override
	public boolean allowsPassage() {
		return allowsPassage;
	}
	
	public void setAllowsPassage(boolean allowsPassage) {
		this.allowsPassage = allowsPassage;
		if (mazeComponent != null){
			mazeComponent.callContentChangeListeners();
		}
	}

	public MazeComponent getMazeComponent() {
		return mazeComponent;
	}

	@Override
	public void setMazeComponent(MazeComponent mazeComponent) {
		this.mazeComponent = mazeComponent;
	}

	
	
}
